<template>
	<view>
		<view class="start">
			<view>
				<swiper :indicator-dots="indicatorDots" :indicator-color="indicatorColor"
					:indicator-active-color="indicatorActiveColor" :autoplay="autoplay" :interval="interval"
					:duration="duration">
					<swiper-item>
						<view>
							<image src="../../../static/2.jpg" mode=""></image>
						</view>
					</swiper-item>
					<swiper-item>
						<view>
							<image src="../../../static/3.jpg" mode=""></image>
						</view>
					</swiper-item>
					<swiper-item>
						<view>
							<image src="../../../static/4.jpg" mode=""></image>
						</view>
					</swiper-item>
				</swiper>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				indicatorDots: true,
				autoplay: true,
				interval: 3000,
				duration: 500,
				indicatorColor: "blue",
				indicatorActiveColor: "#ffffff"
			}
		},
		onLoad() {

		},
		methods: {
			swiperChange(e) {
				if (e.detail.current == 0) {
					uni.navigateTo({
						url: "/pages/index/index"
					})
				}
			}

		}
	}
</script>

<style>
	swiper {
		width: 60vh;
		height: 100vh;
	}

	image {
		width: 80vh;
		height: 140vh;
	}
</style>
